package com.capgemini.poste.dao;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the software database table.
 * 
 */
@Entity
@Table(name="software")
public class Software implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int nb;

	private String lb;

	public Software() {
	}

	public int getNb() {
		return this.nb;
	}

	public void setNb(int nb) {
		this.nb = nb;
	}

	public String getLb() {
		return this.lb;
	}

	public void setLb(String lb) {
		this.lb = lb;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((lb == null) ? 0 : lb.hashCode());
		return result;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Software other = (Software) obj;
		if (lb == null) {
			if (other.lb != null)
				return false;
		} else if (!lb.equals(other.lb))
			return false;
		return true;
	}

}